function twoSum(nums: number[], target: number): number[] {
    let numsb: number[] = [];
    for(let i=0; i < nums.length;i++){
        for(let j = i+1 ;j < nums.length;j++){
            if(nums[i] + nums[j] === target){
                numsb.push(i);
                numsb.push(j);
            }
        }
    }
    return numsb;
};

let nums = [2,7,11,15], target = 9;
let numsb = twoSum(nums,target);
console.log(numsb);